\documentclass[10pt,a4paper]{article}
\usepackage[spanish]{babel}
\usepackage{amsmath, amscd, amssymb, amsthm, latexsym}

%\usepackage{tikz} %Para graficos
%\usetikzlibrary[shapes.geometric]
\usepackage{caratula} %Para la caratula
\usepackage{fancyhdr} %Para los encabezados y pies de pagina
\usepackage{verbatim} %Para los comentarios
\usepackage{lastpage} %Para poder hacer referencia a la cantidad de hojas finales OJO: COMPILAR 2 VECES!!!
\usepackage[pdftex]{color,graphicx} %Para poder incluir graficos
\usepackage{moreverb} %Para poder incluir codigo
\usepackage{makeidx} % Para crear el indice
\usepackage[utf8]{inputenc} %Para acentos
\usepackage{lscape}
\usepackage[normalem]{ulem}
\usepackage{listings}
\usepackage{epsf} 
%\usepackage{enumerate}%Para poder usar distintos enumerados

\makeindex

\setlength{\hoffset}{-2cm}

\textwidth=16cm
\parskip=0.3cm
\headsep=0.75cm

\def\bigcomen#1{
\begin{tabular}[t]{| l |}
\hline
#1
\hline
\end{tabular}
}

\renewcommand{\labelenumii}{enumi.enumii}
\renewcommand{\labelenumiii}{enumii.enumiii}
\renewcommand{\labelenumiv}{enumiii.enumiv}

\def\dashul{\bgroup
  \ifdim\ULdepth=\maxdimen  % Set depth based on font, if not set already
   \settodepth\ULdepth{(j}\advance\ULdepth.4pt\fi
  \markoverwith{\kern.15em
  \vtop{\kern\ULdepth \hrule width .3em}%
  \kern.15em}\ULon}
	
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ENCABEZADO - INICIO
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{fancy}


\fancyhf{} % delete current setting for header and footer

\renewcommand{\headrulewidth}{0.03 cm}
\renewcommand{\footrulewidth}{0.03 cm}

\lhead{Trabajo pr\'actico de Teor\'ia de lenguajes}
\rhead{Grupo: Delgadillo, Pivetta, Prado Riestra}

%Para poder hacer referencia a la cantidad de hojas finales COMPILAR 2 VECES!!!
\fancyfoot[C,CO]{P\'agina \bfseries\thepage \ de \bfseries\pageref{LastPage}}


\newcommand{\listar}[1] {\begin{itemize} #1 \end{itemize}}

\newcommand{\info}[4] {\indent \textbf{CK}: \{#1\} \\ \indent \textbf{PK}: \{#2\} \\ \indent \textbf{FK}: \{#3\} #4}
\newcommand{\ul}[1]{\underline{\textbf{#1}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ENCABEZADO - FIN
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% EMPIEZA EL DOCUMENTO                                                               %
\begin{document}
\include{tleng-tp-caratula}
\newpage
\tableofcontents
\newpage
\include{tleng-tp-gramatica-tokens}
\newpage
\include{tleng-tp-descripcion-solucion}
\newpage
\include{tleng-tp-ejemplos}
\newpage
\include{tleng-tp-codigo-fuente}

\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FIN DEL DOCUMENTO
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
